package cn.fzkj.presistence09;

import akka.actor.AbstractActor;
import akka.event.Logging;
import akka.event.LoggingAdapter; /**
 * @ author mr
 * @ description
 * @ since 2024/12/2
 */
public class EventHandler extends AbstractActor {


    LoggingAdapter log = Logging.getLogger(getContext().system(), this);

    @Override
    public Receive createReceive() {
        return receiveBuilder()
                .matchAny(msg -> {
                    log.info( "Received unknown message: " + msg);
                })
                .build();
    }
}